package com.jsptags.navigation.pager;

import javax.servlet.jsp.JspException;

// Referenced classes of package com.jsptags.navigation.pager:
//			PagerTagSupport, PagerTag

public final class ParamTag extends PagerTagSupport {

	private String name;
	private String value;

	public final void setName(String s) {
		name = s;
	}

	public final String getName() {
		return name;
	}

	public final void setValue(String s) {
		value = s;
	}

	public final String getValue() {
		return value;
	}

	public final int doStartTag() throws JspException {
		super.doStartTag();
		pagerTag.addParam(name, value);
		return 1;
	}

	public final void release() {
		name = null;
		value = null;
		super.release();
	}

	public ParamTag() {
		name = null;
		value = null;
	}
}
